package com.theshy.test.controller;

import com.theshy.test.dao.Student;
import com.theshy.test.service.StudentService;

import java.util.Scanner;

public class StudentController extends BassStudentController{



       @Override
    public Student inputStudentinfo(int id) {


        System.out.println("请输入姓名:");

        String name = sc.next();

        System.out.println("请输入年龄:");
        int age = sc.nextInt();

        System.out.println("请输入生日:");
        String day = sc.next();

        Student s = new Student();
        s.setId(id);
        s.setAge(age);
        s.setName(name);
        s.setDay(day);

        return s;
    }
}
